(function() {
	
	var langEmoji = function(converter) {
		return [{
				type: 'output',
				filter: function(source) { //source 就是原来的string 先解析扩展再主动解析
				
					return source.replace(/:([\u4e00-\u9fa5]+?):/g,(all,a)=>' '+allemoji.get(a)||all+' ')
				}
			}

		];
	};

	// Client-side export
	if (typeof window !== 'undefined' && window.showdown && window.showdown.extensions) {
		window.showdown.extensions.langemoji = langEmoji;
	}
	// Server-side export
	if (typeof module !== 'undefined') module.exports = langEmoji;




	var allemoji = new Map([["哭哭","இwஇ"],["举双爪","ฅ(๑˙o˙๑)ฅ"],["举爪","(๑•̀ㅁ•́ฅ)"],["冒汗","(“▔□▔)"],["击掌","╭(●｀∀´●)╯╰(●’◡’●)╮"],["加油！","(ง•̀_•́)ง(*•̀ㅂ•́)و"],["勾手指","(｡ớ₃ờ)ھ"],["卖萌","✿◡‿◡"],["哇呀","o(>ω<)o"],["哦","ฅ(๑˙o˙๑)ฅ"],["哭","╥﹏╥"],["嘿嘿嘿","๑乛◡乛๑"],["噜啦啦","(づ￣3￣)づ"],["大力掀","(╯#-_-)╯~~~~~~~~~~~~~~~~~╧═╧"],["好呲","(๑＞ڡ＜)☆"],["好困","(‘-ωก̀)"],["委屈","(,,•́.•̀,,)"],["害羞","（//▽//）"],["开心","♪（＾∀＾●）ﾉｼ"],["打招呼","(●’◡’●)ﾉ"],["抱抱","ლ(╹◡╹ლ)"],["抽烟","<(￣₃￣)y—ξ"],["捂眼","(つ﹏⊂)"],["掀桌","(╯-_-)╯┴—┴"],["无奈","╮(๑•́₃•̀๑)╭"],["流口水","ԅ(¯﹃¯ԅ)"],["满足","<(￣︶￣)>"],["爪爪","(ฅ´ω`ฅ)"],["爱你么么哒","•́ε•̀)ฅ(๑•́₃•̀๑٥)"],["猫爪","ฅ’ω’ฅ"],["猫眼","ლↀѡↀლ"],["生气","（╬￣皿￣）"],["皱眉","(눈_눈)"],["睡觉","(：3[▓▓](¦3[▓▓]"],["盯","≖‿≖✧"],["起飞","=≡Σ(((つ•̀ω•́)つ"],["趴地","_(・ω・｣∠)_"],["踢","＜(￣︿￣)︵θ☆（＞口＜－）"],["逃跑","ε=ε=ε=ε=ε=ε=┌(;￣◇￣)┘"],["震惊","Σ(っ°Д°;)っ"],["震惊2","Σ(°△°|||)︴"],["音乐","♫♫♬♪♫ヾ(。—₃—)ノ♫♬。ﾟ"],["高兴","ε٩(๑>₃<)۶з"]])
	
}());
